package com.xcl.bili.domain.exception;

/*
自定义条件异常
 */
public class ConditionException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public ConditionException(String code, String name){
        super(name);
        this.code = code;
    }

    public ConditionException(String name)
    {
        super(name);
        code = "500";
    }


}
